import Vue from 'vue'
import Router from 'vue-router'
import home from './home.vue'

import allTicket from "./allTicket" //所有门票
import allOrder from "./allOrder" //所有订单
import groupBuying from "./groupBuying" //团购票
import recycleBin from "./recycleBin" //回收站
import invoiceM from "./invoiceM" // 发票管理
import errorReporting from "./errorReporting" //错误报告
import operatRecord from "./operatRecord" //操作日志
Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'home',
    component: home,
    children: [...allTicket, ...allOrder, ...groupBuying, ...recycleBin, ...invoiceM,
      ...errorReporting,
      ...operatRecord
    ]
  }]
})
